package com.swills.mandelbrot;

public class Variables {

	private int maxIterations = 30;
	private boolean showAxis = false;

	public int getMaxIterations() {
		return maxIterations;
	}

	public void setMaxIterations(int maxIterations) {
		if (maxIterations < 1) {
			throw new RuntimeException("Max iterations must be greater that 0");
		}
		this.maxIterations = maxIterations;
	}

	public boolean isShowAxis() {
		return showAxis;
	}

	public void setShowAxis(boolean showAxis) {
		this.showAxis = showAxis;
	}

}
